package reflect;

/**
 * @author DBX
 * @effect 可变长参数
 * @date 2021/09/15/19:06
 */
public class ArgDemo {
    public static void main(String[] args) {
        fun();
        fun("1");
        fun("1","2");
        fun("1","2","3","4","5");
    }
    public static void fun(String...s){
        System.out.print(s.length);
        for (String s1 : s) {
            System.out.print("  "+s1);
        }
        System.out.println();
    }

}
